Repository navigation
doc: show the RDS CA bundle in the MySQL IAM example - #40925
Merged
Merged
Conversation
The MySQL IAM authentication example uses SSL MODE verify_identity without a certificate authority. Amazon RDS certificates are signed by Amazon's own CAs, which are not in the system's default CA certificates, so the example needs the RDS certificate bundle. Add the secret and SSL CERTIFICATE AUTHORITY, and explain when it is needed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
maheshwarip
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Fixes SS-601. Follow-up from review on #40911. The MySQL "AWS IAM" example for
CREATE CONNECTIONusesSSL MODE 'verify_identity'but does not supply a certificate authority. Amazon RDS certificates are signed by Amazon's own CAs, which are not in the system's default CA certificates, so the example as written should fail certificate verification.The same fix for the new PostgreSQL example is in #40923.
Description
SSL CERTIFICATE AUTHORITY.verify_ca,verify_identity) and when it is not (required), with a link to the AWS download page.MySQL IAM authentication is already released, so this does not need to wait for a release.
Verification
Not tested against a real RDS MySQL instance. It is based on:
MySqlConnection::configinsrc/storage-types/src/connections.rs, which forVerifyCaandVerifyIdentitytrusts the platform's root certificates plusSSL CERTIFICATE AUTHORITY.The end-to-end test for storage: support AWS IAM authentication for PostgreSQL connections #40911, where
verify_fullto RDS and Aurora PostgreSQL passed with the RDS bundle supplied.The MySQL driver's TLS setup, which adds every PEM certificate in the supplied value to its root store. So a regional bundle with several certificates works as a single
SSL CERTIFICATE AUTHORITYvalue.That verification fails without the bundle follows from the code, because Amazon RDS certificates are not signed by a CA in the platform's root store. It has not been observed.
🤖 Generated with Claude Code